<?php
 	require "../modules/conn.php";
 	session_start();
 	$wsellid=$_SESSION["sid"];
 	$sql="select count(w_sell_id) c from t_watch where w_sell_id=$wsellid group by w_sell_id";
 	$result=mysqli_query($conn,$sql);
 	if($result){
 			while($row=mysqli_fetch_assoc($result)){
				echo json_encode($row);
			};
 	}else{
 		echo "error";
 	}
?>